To override the default document root (i.e. the current directory), use the -t flag:
Examplephp -S <host/ip>:<port> -t <directory>
php -S <host/ip>:<port> -t <directory>
DevOpsSchoolTypically replies within an hour